package com.ydh.company.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;


/**
 * 系统自定义配置类
 */
@Configuration
//@PropertySource("classpath:/config/system.properties")
public class SystemConfig {
//    @Value("${upload.base.path}")
    private String uploadPath;
//    @Value("${upload.allow.ext}")
    private String allowExts;
//    @Value("${upload.default.ext}")
    private String defaultExt;

    public SystemConfig() {
    }

    public String getUploadPath() {
        return uploadPath;
    }

    public void setUploadPath(String uploadPath) {
        this.uploadPath = uploadPath;
    }

    public String getAllowExts() {
        return allowExts;
    }

    public void setAllowExts(String allowExts) {
        this.allowExts = allowExts;
    }

    public String getDefaultExt() {
        return defaultExt;
    }

    public void setDefaultExt(String defaultExt) {
        this.defaultExt = defaultExt;
    }

    @Override
    public String toString() {
        return "SystemConfig{" +
                "uploadPath='" + uploadPath + '\'' +
                ", allowExts='" + allowExts + '\'' +
                ", defaultExt='" + defaultExt + '\'' +
                '}';
    }
}
